class Kill < ActiveRecord::Base
#  primary_key "kll_id"
#  establish_connection :killboard
  
  def self.kills
    data = Kill.find(:all, :select => "(29999999 + kll_system_id) as id, COUNT(kll_id) AS kills", :group => "kll_system_id")
    @kills = Array.new(0)
    data.each do |kill|
      @kills[kill.id.to_i]  = kill.kills
    end
    @kills
  end
end